<template>
  <div>
    <p>设备名称:{{name}}</p>
    <p>时间:{{time}}</p>
    <p>
      设备状态
      <input type="checkbox" v-model="ok" value="1" />开机
      <input type="checkbox" v-model="ok" value="2" />运行
      <input type="checkbox" v-model="error" value="0" />故障
    </p>
    <p>开机时间:{{opentime}}</p>
    <p v-if="iswarn">警报</p>
  </div>
</template>
<script>
export default {
  name: "equipmentdata",
  props:['equipmentdata'],
  data() {
    return {
        //equipmentdata
      name: "null",
      time: "null",
      opentime: "null",
      ok:[],
      error:[],
      iswarn: false
    };
  }
};
</script>